<%@ page language="java" pageEncoding="ISO-8859-1"%>

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>

<sx:head extraLocales="en-us,nl-nl,de-de" />

<form method="post" action="showReviewSentInvoicesReport.htm">

	<table width="100%" height="255" border="0" align="center"
		cellpadding="0" cellspacing="0">

		<tr>
			<td height="40" colspan="2" class="sectionheading bottom-border">
				Invoices Report
			</td>
		</tr>
		<tr>
			<td align="left" class="verdana12blacknormal">
				Below is the history of the invoices sent by the system to the
				users.
			</td>
		</tr>
		<tr>
			<td>
				<table width="85%" border="0" align="center" cellpadding="0"
					cellspacing="0" height="85%">
					<tr>
						<td>
							<table width="100%" border="0" align="center" cellpadding="2"
								cellspacing="2">
								<tr>
									<td>
										<s:actionerror cssClass="note-red"/>
										<s:fielderror cssClass="note-red"/>
									</td>
								</tr>
								<tr>
									<td width="39%" height="30" align="right"
										class="verdana12blacknormal">
										Date From:
									</td>
									<td>
										<sx:datetimepicker value="%{'today'}" toggleType="wipe"
											toggleDuration="300" name="startDate" />
									</td>
								</tr>
								<tr>
									<td height="30" align="right" class="verdana12blacknormal">
										To:
									</td>
									<td>
										<sx:datetimepicker value="%{'today'}" toggleType="wipe"
											toggleDuration="300" name="endDate" />
									</td>
								</tr>
								<tr>
									<td width="39%" height="30" align="right"
										class="verdana12blacknormal">
										Search For :
									</td>
									<td width="61%" class="verdana12blacknormal">
										<select name="group">
											<option value="All">
												All Invoices(16)
											</option>
											<option value="Germany">
												All Invoices form Germany Users(10)
											</option>
											<option value="European">
												All Invoices form European Union(1)
											</option>
											<option value="Other">
												All Other Users(5)
											</option>
										</select>
									</td>
								</tr>
								<tr>
									<td width="39%" height="30" align="right"
										class="verdana12blacknormal">
										VAT ID Code:
									</td>
									<td width="61%" class="verdana12blacknormal">
										<select size="1" name="Country_Code">
											<option value="">
												--Select--
											</option>
											<option value="BE">
												BE(0)
											</option>
											<option value="DK">
												DK(0)
											</option>
											<option value="DE">
												DE(10)
											</option>
											<option value="UK">
												UK(1)
											</option>
											<option value="FI">
												FI(0)
											</option>
											<option value="FR">
												FR(0)
											</option>
											<option value="GR">
												GR(0)
											</option>
											<option value="IE">
												IE(0)
											</option>
											<option value="IT">
												IT(0)
											</option>
											<option value="LU">
												LU(0)
											</option>
											<option value="NL">
												NL(0)
											</option>
											<option value="AT">
												AT(0)
											</option>
											<option value="PT">
												PT(0)
											</option>
											<option value="SE">
												SE(0)
											</option>
											<option value="ES">
												ES(0)
											</option>
										</select>
									</td>
								</tr>
								<tr>
									<td width="39%" height="30" align="right"
										class="verdana12blacknormal">
										Overdue after:
									</td>
									<td width="61%" class="verdana12blacknormal">
										<s:textfield name="overdue" size="10" value="30"
											theme="simple" />
										days
									</td>
								</tr>
								<!--<tr><td nowrap><b>&nbsp;Minimum Total Due:</b></td><td  nowrap>&nbsp;&Translate("currency")
          <s:textfield name="Send_Invoice_Min_Balance" size="10"  value=""/>-->

								<tr>
									<td height="30" align="left" class="verdana12blacknormal">
										&nbsp;
									</td>

									<td width="61%" class="verdana12Greybold">
										<s:submit theme="simple" type="image"
											src="../Admin-Images/search-btn.gif" value="Search"
											align="center" />
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</form>

<display:table name="auctionInvoicesList" cellpadding="0" cellspacing="0" id="row" class="verdana12blacknormal">
	<display:column title="#" value="${row_rowNum}" headerClass="Table-Head"></display:column>
	<display:column title="Customer Id" property="user.userId" headerClass="Table-Head"></display:column>
	<display:column title="Date Sent" headerClass="Table-Head">
		<s:date name="#attr.row.date" format="dd MMMM, yyyy" />
	</display:column>
	<display:column title="Start date" headerClass="Table-Head">
		<s:date name="#attr.row.start" format="dd MMMM, yyyy" />
	</display:column>
	<display:column title="End date" headerClass="Table-Head">
		<s:date name="#attr.row.ends" format="dd MMMM, yyyy" />
	</display:column>
	<display:column title="Invoice No." headerClass="Table-Head">
		<s:property value="#attr.row.invoice" />
	</display:column>
	<display:column title="Invoices" headerClass="Table-Head"></display:column>
	<display:column title="Total Net Amount" headerClass="Table-Head">
		<s:property value="#attr.row.amount" />
	</display:column>
	<display:column title="Total VAT" headerClass="Table-Head"></display:column>
		<s:property value="'0.0'" />
	<display:column title="Total Amount" headerClass="Table-Head">
		<s:property value="#attr.row.amount + 0" />
	</display:column>
</display:table>

<div>
	<center>
		<table>
			<tr>
				<td align="center" bgcolor="<s:property value="%{bgColor}" />"
					 style="cursor: pointer;">
					<s:a href="" cssClass="navi-link">Print</s:a>
				</td>
				</tr>
				<tr>
				<td align="center" bgcolor="<s:property value="%{bgColor}" />"
					 style="cursor: pointer;">
					<s:a href="showAccountingManager.htm" cssClass="navi-link">Back to the accounting manager</s:a>
				</td>
			</tr>
		</table>
	</center>
</div>
